package com.kimehwa.studyboot.exception;

import lombok.Getter;

/**
 * @author xiaodongguan
 * @since 2021-07-11 16:41
 */
@Getter
public class BizException extends RuntimeException{
    private ExceptionCodeEnum error;

    public BizException(ExceptionCodeEnum error,Throwable cause){
        super(cause);
        this.error = error;
    }

    public BizException(ExceptionCodeEnum error) {
        this.error = error;
    }
}
